package Server.ExtComponents.utilsKit;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;


public class ProperTiesUtil {

    public static Properties getProPertis(String filePath){
        InputStream fileInputStream= null;
        try {
            fileInputStream = new FileInputStream(new File(filePath));
            Properties serverSettings    = new Properties();
            serverSettings.load(fileInputStream);
            fileInputStream.close();
            return serverSettings;
        } catch (Exception e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            return null;
        }
    }

}
